package admin_user_permissions

import (
	"time"
)

// 表名也是cache的tag
var TableName = "admin_user_permissions"

// 角色权限表
type AdminUserPermissions struct {
	Id           int64     `xorm:"pk autoincr"`
	UserId       int64     `xorm:"int(11) notnull unique(role_permission) 'user_id'"`
	PermissionId int64     `xorm:"int(11) notnull unique(role_permission) 'permission_id'"`
	CreatedAt    time.Time `xorm:"notnull created 'created_at'"`
	UpdatedAt    time.Time `xorm:"null updated 'updated_at'"`
}
